﻿<%@ Page Language="VB" AutoEventWireup="false" Theme="myTheme" MasterPageFile="masterPage.master"
    CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%@ Register Src="~/UserCuntrols/TopMenu.ascx" TagName="TopMenu" TagPrefix="uc1" %>
<%@ Register Src="~/UserCuntrols/RandomHyperlinkl.ascx" TagName="RandomHyperlinkl"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserCuntrols/AddRatator.ascx" TagName="AddRatator" TagPrefix="uc1" %>
<%@ Register Src="~/UserCuntrols/footer.ascx" TagName="footer" TagPrefix="uc1" %>
<%@ Register Src="~/UserCuntrols/CustomDropDown.ascx" TagName="CustomDropDown" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ContentPlaceHolderID="_head" runat="server" ID="head">

    <script language="javascript" type="text/javascript">
searchKeyPress = function(e){
    if(!e) var e = window.event;

    if(e.keyCode == 13){
        $('<%=btnSearch.ClientID %>').click();
        return false;
    }
};
    </script>

</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="_main" runat="server">
    <asp:UpdatePanel ID="UpdatePanelFrame" runat="server" RenderMode="Inline">
        <ContentTemplate>
            <asp:Image ID="imgFrame" runat="server" Style="position: absolute;" BorderWidth="0"
                ImageUrl="~/images/background.gif" Height="90%" Width="99.8%" ImageAlign="AbsMiddle" />
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click"></asp:AsyncPostBackTrigger>
        </Triggers>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgressGoogle" runat="server" AssociatedUpdatePanelID="UpdatePanelGoogle">
        <ProgressTemplate>
            <div id="loader" class="loader" align="center">
                <img src="<%=ResolveUrl("~/images/loading-spinner.gif") %>" alt="Loading..." /><span
                    id="loaderText" class="loaderText">Loading...</span>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdateProgress ID="UpdateProgressYahoo" runat="server" AssociatedUpdatePanelID="UpdatePanelYahoo">
        <ProgressTemplate>
            <div id="loader" class="loader" align="center">
                <img src="<%=ResolveUrl("~/images/loading-spinner.gif") %>" alt="Loading..." /><span
                    id="loaderText" class="loaderText">Loading...</span>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdateProgress ID="UpdateProgressEbay" runat="server" AssociatedUpdatePanelID="UpdatePanelEbay">
        <ProgressTemplate>
            <div id="loader" class="loader" align="center">
                <img src="<%=ResolveUrl("~/images/loading-spinner.gif") %>" alt="Loading..." /><span
                    id="loaderText" class="loaderText">Loading...</span>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdateProgress ID="UpdateProgressSpellword" runat="server" AssociatedUpdatePanelID="UpdatePanelSpellWord">
        <ProgressTemplate>
            <div id="loader" class="loader" align="center">
                <img src="<%=ResolveUrl("~/images/loading-spinner.gif") %>" alt="Loading..." /><span
                    id="Span1" class="loaderText">Loading...</span>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdateProgress ID="UpdateProgresssubmit" runat="server" AssociatedUpdatePanelID="UpdatePanelsubmit">
        <ProgressTemplate>
            <div id="loader" class="loader" align="center">
                <img src="<%=ResolveUrl("~/images/loading-spinner.gif") %>" alt="Loading..." /><span
                    id="Span1" class="loaderText">Loading...</span>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <div style="width: 100%; position: absolute;" align="center">
        <div style="top: 30px; left: 45px; position: absolute;">
            <asp:ImageButton ImageUrl="~/images/AdvertiseYourGigiti.gif" AlternateText="Advertise Your Gigiti"
                ID="AdvertiseYourGigiti" runat="server" PostBackUrl="YourGigiti.aspx" />
        </div>
        <asp:UpdatePanel ID="UpdatePanelSpacer" runat="server" RenderMode="Inline">
            <ContentTemplate>
                <asp:Image ID="imgBlank" runat="server" ImageUrl="~/images/spacer.gif" Width="1"
                    Height="180" />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkbtnSpell" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkSpellWord" EventName="Click"></asp:AsyncPostBackTrigger>
            </Triggers>
        </asp:UpdatePanel>
        <asp:Panel ID="search" Style="width: 100%;" runat="server" CssClass="aspPanel" HorizontalAlign="Center">
            <uc1:TopMenu ID="topMenu1" runat="server" SelectedTab="Web" />
            <div style="position: absolute; padding-left: 39%; text-align:center; padding-top: 10px;">
                <asp:UpdatePanel ID="UpdatePanelSpellWord" runat="server" RenderMode="Inline">
                    <ContentTemplate>
                            <div style="float: left;">
                                <asp:LinkButton ID="lnkbtnSpell" runat="server" Text="Check spelling"></asp:LinkButton>
                            </div>
                            <asp:Panel ID="pnlspellword" runat="server" Style="padding-left: 10px; float: left;"
                                Visible="false">
                                <asp:Literal ID="litSpellWord" runat="server"></asp:Literal>
                                <asp:LinkButton ID="lnkSpellWord" runat="server"></asp:LinkButton>
                            </asp:Panel>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="lnkbtnSpell" EventName="Click"></asp:AsyncPostBackTrigger>
                        <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click"></asp:AsyncPostBackTrigger>
                    </Triggers>
                </asp:UpdatePanel>
            </div>
            <div id="divSearch" align="center">
                <asp:Label Text="" ID="lblSearch" runat="server"></asp:Label>
                <asp:TextBox runat="server" style="margin-left:10px;" ID="txtKeyword" CssClass="aspTextBox" Text="" ToolTip="Place your keyword to search"></asp:TextBox>
                <uc1:CustomDropDown ID="CustomCategory" runat="server" DataXML="~/XML/WebCategory.xml" />

                <script language="javascript" type="text/javascript">
                $('<%=txtKeyword.ClientID %>').onkeypress = searchKeyPress;
                </script>

                <asp:UpdatePanel ID="UpdatePanelsubmit" runat="server" RenderMode="Inline">
                    <ContentTemplate>
                        <asp:ImageButton ImageUrl="~/images/GigitiButton4.gif" style="margin-top:-15px;margin-left:-4px;" runat="server" ToolTip="Click to search specified keyword"
                            AlternateText="Search" ID="btnSearch" Width="63" Height="33" ImageAlign="AbsMiddle" />
                        <div style="margin-top: -10px;">
                            <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="<br />Please enter keyword and select category"></asp:CustomValidator>
                        </div>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="lnkbtnSpell" EventName="Click"></asp:AsyncPostBackTrigger>
                        <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click"></asp:AsyncPostBackTrigger>
                    </Triggers>
                </asp:UpdatePanel>
            </div>
        </asp:Panel>
        <asp:UpdatePanel ID="UpdatePanelHyperlinkTop" runat="server" RenderMode="Inline">
            <ContentTemplate>
                <asp:Panel ID="pnlHyperlinkTop" runat="server" Visible="false" HorizontalAlign="center"
                    Style="padding-left: 260px; padding-right: 260px; padding-top: 5px;">
                    <uc1:RandomHyperlinkl ID="hlkTop" RemoveLink="2" runat="server" XMLFile="~/XML/HyperlinkTop.xml" />
                </asp:Panel>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkbtnSpell" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkSpellWord" EventName="Click"></asp:AsyncPostBackTrigger>
            </Triggers>
        </asp:UpdatePanel>
    </div>
    <div style="width: 100%; position: absolute; top: 280px" align="center">
        <!-- End Search Panel -->
        <asp:UpdatePanel ID="UpdatePanelYahoo" runat="server" RenderMode="Inline">
            <ContentTemplate>
                <asp:Panel ID="YahooResult" runat="server" Visible="false" CssClass="aspPanelResult">
                    <asp:Image ImageUrl="~/images/spacer.gif" Style="height: 35px;" ID="imgLogoSpace"
                        runat="server" />
                    <table cellpadding='0' cellspacing='0' border="0" width="100%">
                        <tr height="24">
                            <td width="24">
                                <asp:Image ID="img5" runat="server" ImageUrl="~/images/blue/topleft_cornor.gif" ImageAlign="right" />
                            </td>
                            <td class="topHeader_blue" align="left">
                                Top Ten
                            </td>
                            <td class="topHeader_blue1"><asp:Image ID="img3" runat="server" ImageUrl="~/images/blue/topright_cornor.gif" ImageAlign="right" /></td>
                            <td class="topBorder_blue">
                            </td>
                            <td valign="bottom">
                                <asp:Image ID="img4" runat="server" ImageUrl="~/images/blue/topright_bgcornor.gif"
                                    ImageAlign="left" />
                            </td>
                        </tr>
                        <tr valign="top">
                            <td class="leftBorder_blue">
                            </td>
                            <td colspan="3" height="50" bgcolor="#ffffff">
                                <div id="divSuggestionResult" wrap>
                                    <asp:GridView ID="yahooRes" runat="server" CssClass="datagrid" GridLines="Horizontal"
                                        Width="98%" AlternatingRowStyle-CssClass="datagridAlterRow" HeaderStyle-CssClass="datagridHeader"
                                        HorizontalAlign="Center" PagerSettings-NextPageText="Next >" PagerSettings-PreviousPageText="< Prev"
                                        PagerSettings-Mode="NextPrevious" AllowPaging="False" PageSize="10" AutoGenerateColumns="False"
                                        __designer:wfdid="w12" ShowHeader="false">
                                        <AlternatingRowStyle CssClass="datagridAlterRow" />
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <div style="float: left; color: #0000FF; font-weight: bold;">
                                                        <%#CreateCommentsLink(Eval("Website_Name"), Eval("Link"))%>
                                                    </div>
                                                    <div style="float: right;">
                                                        <cc1:Rating ID="Rating2" runat="server" CurrentRating='<%#Eval("rating") %>' StarCssClass="ratingStar"
                                                            WaitingStarCssClass="savedRatingStar" MaxRating="10" FilledStarCssClass="filledRatingStar"
                                                            EmptyStarCssClass="emptyRatingStar" ReadOnly="true">
                                                        </cc1:Rating>
                                                    </div>
                                                    <br />
                                                    <div style="float: left">
                                                        <div style="float: left;">
                                                            <%#RestrictLinkSize(Eval("Link").ToString())%>
                                                        </div>
                                                        <div style="float: right;">
                                                            <asp:ImageButton ID="imgRead" AlternateText="Read" ToolTip="Read and Rate" CommandArgument='<%#Eval("Website_Name")%>'
                                                                CommandName="Read" runat="server" ImageUrl="~/images/Read.gif" />
                                                        </div>
                                                    </div>
                                                </ItemTemplate>
                                                <ItemStyle Wrap="True" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <HeaderStyle CssClass="datagridHeader" />
                                        <PagerSettings Mode="NextPrevious" NextPageText="Next &gt;" PreviousPageText="&lt; Prev" />
                                    </asp:GridView>
                                    <asp:LinkButton ID="lnkBackComments" CausesValidation="false" runat="server" Visible="false">
                                    <div align="center" style="width:100%;font-weight:bold;">Back to main menu</div></asp:LinkButton>
                                    <asp:GridView ID="ReadComments" runat="server" CssClass="datagrid" GridLines="Horizontal"
                                        Width="98%" AlternatingRowStyle-CssClass="datagridAlterRow" HeaderStyle-CssClass="datagridHeader"
                                        HorizontalAlign="Center" PagerSettings-NextPageText="Next >" PagerSettings-PreviousPageText="< Prev"
                                        PagerSettings-Mode="NextPrevious" AllowPaging="true" PageSize="6" AutoGenerateColumns="False"
                                        Visible="false" __designer:wfdid="w12">
                                        <AlternatingRowStyle CssClass="datagridAlterRow" />
                                        <Columns>
                                            <asp:TemplateField HeaderText="Suggestion">
                                                <ItemTemplate>
                                                    <div style="float: left" align="left">
                                                        <cc1:Rating ID="Rating3" runat="server" CurrentRating='<%#Eval("rating") %>' StarCssClass="ratingStar"
                                                            WaitingStarCssClass="savedRatingStar" MaxRating="10" FilledStarCssClass="filledRatingStar"
                                                            EmptyStarCssClass="emptyRatingStar" ReadOnly="true">
                                                        </cc1:Rating>
                                                        <span style="padding-left: 5px;">
                                                            <%#Eval("DatetimeStamp")%>
                                                        </span>
                                                    </div>
                                                    <br />
                                                    <div title='<%#Eval("Comments") %>' style="float: left" align="left">
                                                        <%#FixCommentLength(Eval("Comments").ToString())%>
                                                    </div>
                                                    <br />
                                                    <div style="float: left" align="left">
                                                        By -
                                                        <%#Eval("Username")%>
                                                    </div>
                                                </ItemTemplate>
                                                <ItemStyle Wrap="True" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <HeaderStyle CssClass="datagridHeader" />
                                        <PagerSettings Mode="NextPrevious" NextPageText="Next &gt;" PreviousPageText="&lt; Prev" />
                                    </asp:GridView>
                                    <asp:Literal ID="litCommentsMessage" runat="server"></asp:Literal>
                                    <asp:HiddenField ID="hidWebsite_Name" runat="server" />
                                    <asp:Panel ID="pnlAddComments" runat="server" Visible="false">
                                        <div style="float: left; position: relative;">
                                            Your Rating :<cc1:Rating ID="Rating1" runat="server" CurrentRating='0' StarCssClass="ratingStar"
                                                WaitingStarCssClass="savedRatingStar" MaxRating="10" FilledStarCssClass="filledRatingStar"
                                                EmptyStarCssClass="emptyRatingStar">
                                            </cc1:Rating>
                                        </div>
                                        Your Comments :
                                        <asp:TextBox ID="txtAddComments" Width="98%" runat="server" TextMode="MultiLine"
                                            MaxLength="500" Rows="4" Style="overflow: auto;max-width:340px;" ValidationGroup="Comment"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="alidAddcomments" runat="server" ErrorMessage="Comments Shouldn't be empty"
                                            ControlToValidate="txtAddComments" ValidationGroup="Comment"></asp:RequiredFieldValidator>
                                        <div align="center">
                                            <asp:Button ID="btnaddComments" runat="server" Text="Add Comments" Style="margin-left: -15px;" ValidationGroup="Comment" />
                                        </div>
                                    </asp:Panel>
                                    <!-- Start alternate Yahoo search in top ten panel -->
                                    <asp:Panel ID="pnlAlternateYahooSearch" runat="server" Visible="true" Height="500px" ScrollBars="Vertical">
                                    <asp:GridView ID="gvAlternateYahooSearch" runat="server" CssClass="datagrid" GridLines="Horizontal"
                                            Width="98%" AlternatingRowStyle-CssClass="datagridAlterRow" HeaderStyle-CssClass="datagridHeader"
                                            HorizontalAlign="Center" PagerSettings-NextPageText="Next >" PagerSettings-PreviousPageText="< Prev"
                                            PagerSettings-Mode="NextPrevious" AllowPaging="false" PageSize="10" AutoGenerateColumns="False"
                                            __designer:wfdid="w14" Visible="false">
                                            <AlternatingRowStyle CssClass="datagridAlterRow" />
                                            <Columns>
                                                <asp:TemplateField HeaderText="Url">
                                                    <ItemTemplate>
                                                        <div style="float: left" align="left">
                                                            <%#RestrictGoogleLinkSize(Eval("Url"), Eval("title"))%>
                                                        </div>
                                                        <br />
                                                        <div style="float: left" align="left">
                                                            <span class="blackText">
                                                                <%#Eval("snippet")%>
                                                            </span>
                                                        </div>
                                                        <div style="float: left" align="left">
                                                            <span class="blackText">
                                                                <%#Eval("Cached")%>
                                                            </span>
                                                        </div>
                                                    </ItemTemplate>
                                                    <ItemStyle Wrap="True" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <HeaderStyle CssClass="datagridHeader" />
                                            <PagerSettings Mode="NextPrevious" NextPageText="Next &gt;" PreviousPageText="&lt; Prev" />
                                        </asp:GridView>
                                        </asp:Panel>
                                     <!-- End alternate Yahoo search in top ten panel -->
                                </div>
                            </td>
                            <td class="rightBorder_blue">
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <asp:Image ID="img1" runat="server" ImageUrl="~/images/blue/bottomleft_cornor.gif"
                                    ImageAlign="left" />
                            </td>
                            <td colspan="3" class="bottomBorder_blue">
                            </td>
                            <td valign="top">
                                <asp:Image ID="img2" runat="server" ImageUrl="~/images/blue/bottomright_cornor.gif"
                                    ImageAlign="left" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkSpellWord" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="yahooRes" EventName="RowCommand"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkBackComments" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="btnaddComments" EventName="Click"></asp:AsyncPostBackTrigger>
            </Triggers>
        </asp:UpdatePanel>
        <!-- End Yahoo Result Panel -->
        <!-- Begin Google Result Panel -->
        <asp:UpdatePanel ID="UpdatePanelGoogle" runat="server" RenderMode="Inline">
            <ContentTemplate>
                <asp:Panel ID="GoogleResult" runat="server" CssClass="aspPanelResult" Visible="false"
                    __designer:wfdid="w13">
                    <asp:Image ImageUrl="~/images/yahoo.gif" Style="height: 20px;margin-top:10px;margin-bottom:5px;" ID="imgLogoGoogle"
                        runat="server" />
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tbody>
                            <tr height="24">
                                <td width="24">
                                    <asp:Image ID="img6" runat="server" ImageUrl="~/images/blue/topleft_cornor.gif" ImageAlign="right" />
                                </td>
                                <td class="topHeader_blue" align="left">
                                    Yahoo Results
                                </td>
                                <td class="topHeader_blue1">
                                    <asp:Image ID="img7" runat="server" ImageUrl="~/images/blue/topright_cornor.gif"
                                        ImageAlign="right" />
                                </td>
                                <td class="topBorder_blue">
                                </td>
                                <td valign="bottom">
                                    <asp:Image ID="img8" runat="server" ImageUrl="~/images/blue/topright_bgcornor.gif"
                                        ImageAlign="right" />
                                </td>
                            </tr>
                            <tr valign="top">
                                <td class="leftBorder_blue">
                                </td>
                                <td bgcolor="#ffffff" colspan="3" height="50">
                                    <div id="divGoogleResult" wrap>
                                        <asp:GridView ID="googleRes" runat="server" CssClass="datagrid" GridLines="Horizontal"
                                            Width="98%" AlternatingRowStyle-CssClass="datagridAlterRow" HeaderStyle-CssClass="datagridHeader"
                                            HorizontalAlign="Center" PagerSettings-NextPageText="Next >" PagerSettings-PreviousPageText="< Prev"
                                            PagerSettings-Mode="NextPrevious" AllowPaging="false" PageSize="4" AutoGenerateColumns="False"
                                            __designer:wfdid="w14">
                                            <AlternatingRowStyle CssClass="datagridAlterRow" />
                                            <Columns>
                                                <asp:TemplateField HeaderText="Url">
                                                    <ItemTemplate>
                                                        <div style="float: left" align="left">
                                                            <%#RestrictGoogleLinkSize(Eval("Url"), Eval("title"))%>
                                                        </div>
                                                        <br />
                                                        <div style="float: left" align="left">
                                                            <span class="blackText">
                                                                <%#Eval("snippet")%>
                                                            </span>
                                                        </div>
                                                        <div style="float: left" align="left">
                                                            <span class="blackText">
                                                                <%#Eval("Cached")%>
                                                            </span>
                                                        </div>
                                                    </ItemTemplate>
                                                    <ItemStyle Wrap="True" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <HeaderStyle CssClass="datagridHeader" />
                                            <PagerSettings Mode="NextPrevious" NextPageText="Next &gt;" PreviousPageText="&lt; Prev" />
                                        </asp:GridView>
                                        <asp:Panel ID="Panel1" runat="server" Width="100%" HorizontalAlign="Left">
                                            <uc1:RandomHyperlinkl ID="RandomHyperlinklGoogle" runat="server" XMLFile="~/XML/HyperlinkGoogle.xml" />
                                        </asp:Panel>
                                    </div>
                                </td>
                                <td class="rightBorder_blue">
                                </td>
                            </tr>
                            <tr valign="top">
                                <td class="leftBorder_blue">
                                </td>
                                <td bgcolor="#ffffff" colspan="3" height="50">
                                    <div style="padding-left: 18px; float: left">
                                        <asp:LinkButton Style="font-weight: bold; color: #a0a0a0; text-decoration: none"
                                            ID="lnkGooglePrev" runat="server" __designer:wfdid="w15">&lt; Prev</asp:LinkButton>
                                        <asp:LinkButton Style="font-weight: bold; color: #a0a0a0; text-decoration: none"
                                            ID="lnkGoogleNext" runat="server" __designer:wfdid="w16">Next &gt;</asp:LinkButton>
                                    </div>
                                    <div style="padding-right: 18px; float: right">
                                        <asp:Literal ID="litGoogleSearchCount" runat="server" __designer:wfdid="w17"></asp:Literal>
                                    </div>
                                </td>
                                <td class="rightBorder_blue">
                                </td>
                            </tr>
                            <tr valign="top">
                                <td valign="bottom">
                                    <asp:Image ID="img9" runat="server" ImageUrl="~/images/blue/bottomleft_cornor.gif"
                                        ImageAlign="right" />
                                </td>
                                <td class="bottomBorder_blue" colspan="3">
                                </td>
                                <td valign="bottom">
                                    <asp:Image ID="img10" runat="server" ImageUrl="~/images/blue/bottomright_cornor.gif"
                                        ImageAlign="right" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </asp:Panel>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkGoogleNext" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkGooglePrev" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkSpellWord" EventName="Click"></asp:AsyncPostBackTrigger>
            </Triggers>
        </asp:UpdatePanel>
        <!-- End Google Result Panel -->
        <!-- Begin ebay Result Panel -->
        <asp:UpdatePanel ID="UpdatePanelEbay" runat="server" RenderMode="Inline">
            <ContentTemplate>
                <asp:Panel ID="EbayResult" runat="server" CssClass="aspPanelResult" Visible="false"
                    __designer:wfdid="w18">
                    <asp:Image ImageUrl="~/images/ebay.gif" ID="Image1" runat="server" />
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tbody>
                            <tr height="24">
                                <td width="24">
                                    <asp:Image ID="img11" runat="server" ImageUrl="~/images/blue/topleft_cornor.gif"
                                        ImageAlign="right" />
                                </td>
                                <td class="topHeader_blue" align="left">
                                    Ebay Results
                                </td>
                                <td class="topHeader_blue1">
                                    <asp:Image ID="img12" runat="server" ImageUrl="~/images/blue/topright_cornor.gif"
                                        ImageAlign="right" />
                                </td>
                                <td class="topBorder_blue">
                                </td>
                                <td valign="bottom" width="6">
                                    <asp:Image ID="img13" runat="server" ImageUrl="~/images/blue/topright_bgcornor.gif"
                                        ImageAlign="right" />
                                </td>
                            </tr>
                            <tr valign="top">
                                <td class="leftBorder_blue">
                                </td>
                                <td bgcolor="#ffffff" colspan="3" height="50">
                                    <div id="divEbayResult">
                                        <asp:GridView ID="ebayres" runat="server" CssClass="datagrid" GridLines="Horizontal"
                                            Width="98%" AlternatingRowStyle-CssClass="datagridAlterRow" HeaderStyle-CssClass="datagridHeader"
                                            HorizontalAlign="Center" PagerSettings-NextPageText=" " PagerSettings-PreviousPageText=" "
                                            PagerSettings-Mode="NextPrevious" AllowPaging="false" PageSize="3" AutoGenerateColumns="false"
                                            __designer:wfdid="w19">
                                            <AlternatingRowStyle CssClass="datagridAlterRow" />
                                            <Columns>
                                                <asp:TemplateField HeaderText="Image">
                                                    <ItemTemplate>
                                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#Eval("link")%>' ImageUrl='<%#Eval("image")%>'
                                                            Target="_blank" ToolTip='<%#Eval("title")%>'></asp:HyperLink>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Item Title">
                                                    <ItemTemplate>
                                                        <div align="left">
                                                            <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%#Eval("link")%>' Text='<%#Eval("title")%>'
                                                                Target="_blank" ToolTip='<%#Eval("title")%>'></asp:HyperLink>
                                                        </div>
                                                        <br />
                                                        <div align="left">
                                                            <span class="blackText">
                                                                <%#Eval("Bids")%>
                                                                <br />
                                                                <%#Eval("Price")%>
                                                                <br />
                                                                <%#Eval("BuyItNow")%>
                                                                <br />
                                                                <%#Eval("EndTime")%>
                                                            </span>
                                                        </div>
                                                    </ItemTemplate>
                                                    <ItemStyle VerticalAlign="Top" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <HeaderStyle CssClass="datagridHeader" />
                                            <PagerSettings Mode="NextPrevious" NextPageText="Next &gt;" PreviousPageText="&lt; Prev" />
                                        </asp:GridView>
                                        <asp:Literal ID="litEbayError" runat="server"></asp:Literal>
                                        <asp:Panel ID="Panel2" runat="server" Width="100%" HorizontalAlign="Left">
                                            <uc1:RandomHyperlinkl ID="RandomHyperlinkl1" runat="server" XMLFile="~/XML/Hyperlinkebay.xml" />
                                        </asp:Panel>
                                        <asp:Literal ID="litEbayErrorMessage" runat="server"></asp:Literal>
                                    </div>
                                </td>
                                <td class="rightBorder_blue">
                                </td>
                                <tr valign="top">
                                    <td class="leftBorder_blue">
                                    </td>
                                    <td colspan="3" height="50" bgcolor="#ffffff">
                                        <div style="float: left; padding-left: 18px;">
                                            <asp:LinkButton ID="lnkEbayPrev" runat="server" Style="color: #A0A0A0; font-weight: bold;
                                                text-decoration: none;">&lt; Prev</asp:LinkButton>
                                            <asp:LinkButton ID="lnkEbayNext" runat="server" Style="color: #A0A0A0; font-weight: bold;
                                                text-decoration: none;">Next &gt;</asp:LinkButton>
                                        </div>
                                        <div style="float: right; padding-right: 18px;">
                                            <asp:Literal ID="litEbaySearchCount" runat="server"></asp:Literal>
                                        </div>
                                    </td>
                                    <td class="rightBorder_blue">
                                    </td>
                                </tr>
                            </tr>
                            <tr valign="top">
                                <td valign="bottom">
                                    <asp:Image ID="img14" runat="server" ImageUrl="~/images/blue/bottomleft_cornor.gif"
                                        ImageAlign="right" />
                                </td>
                                <td class="bottomBorder_blue" colspan="3">
                                </td>
                                <td valign="bottom">
                                    <asp:Image ID="img15" runat="server" ImageUrl="~/images/blue/bottomright_cornor.gif"
                                        ImageAlign="right" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </asp:Panel>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkSpellWord" EventName="Click"></asp:AsyncPostBackTrigger>
            </Triggers>
        </asp:UpdatePanel>
        <br />
        <asp:UpdatePanel ID="UpdatePanelHyperlinkBottom" runat="server" RenderMode="block">
            <ContentTemplate>
                <span style="visibility: hidden;">_demo</span>
                <asp:Panel ID="pnlHyperlinkBottom" runat="server" Visible="false" HorizontalAlign="Center"
                    Style="padding-left: 260px; padding-right: 260px; padding-top: 5px;">
                    <uc1:RandomHyperlinkl ID="RandomHyperlinkl2" runat="server" XMLFile="~/XML/HyperlinkBottom.xml" />
                    <br />
                    <uc1:AddRatator ID="ads" runat="server" XMLFile="~/XML/Advertisements2.xml" />
                    <br />
                </asp:Panel>
                <asp:Panel ID="pnlImage" runat="server" align="center" Style="padding: 5px;" Width="100%"
                    Visible="false">
                    <uc1:footer ID="footer2" runat="server" />
                </asp:Panel>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkbtnSpell" EventName="Click"></asp:AsyncPostBackTrigger>
                <asp:AsyncPostBackTrigger ControlID="lnkSpellWord" EventName="Click"></asp:AsyncPostBackTrigger>
            </Triggers>
        </asp:UpdatePanel>
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">
        <ContentTemplate>
            <asp:Panel ID="pnlImage1" runat="server" align="center" Style="position: absolute;
                bottom: 10px;" Width="100%">
                <uc1:footer ID="footer1" runat="server" />
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click"></asp:AsyncPostBackTrigger>
            <asp:AsyncPostBackTrigger ControlID="lnkbtnSpell" EventName="Click"></asp:AsyncPostBackTrigger>
            <asp:AsyncPostBackTrigger ControlID="lnkSpellWord" EventName="Click"></asp:AsyncPostBackTrigger>
        </Triggers>
    </asp:UpdatePanel>
    <script language="javascript">
    document.getElementById("<%=txtKeyword.ClientId %>").focus();
    </script>
    <!-- End ebay Result Panel -->
</asp:Content>
